import {request} from '../request'


export const getapplylist = () =>{
    return request({
        url:'user/applications',
        method: 'get',
      })
}

export const getapplyres = (userdata) => {
    return request({
        url: 'user/application',
        method: 'post',
        data: userdata
    })
}

export const updateavatar = (avatar) =>{
    return request({
        url: 'user/avatar/update',
        method: 'put',
        data: avatar
    })
}

export const usrlogout = () => {
    return request({
        url: '/user/logout'
      })
}

export const manageapply = (selectlist,allow) =>{
    return request({
        url:'user/applications/management',
        method:'delete',
        params: {
          username: selectlist + " ",
          allow
        }
      })
}